#define  _CRT_SECURE_NO_WARNINGS
#include "SeqList.h"

void SeqListTest()
{
	SL s;
	SLInit(&s);
	//SLPushBack(&s, 1);
	//SLPushBack(&s, 2);
	//SLPushBack(&s, 3);
	//SLPushBack(&s, 4);
	//SLPushBack(&s, 5);
	//print(&s);

	SLPushFront(&s, 1);
	SLPushFront(&s, 2);
	SLPushFront(&s, 3);
	SLPushFront(&s, 4);
	SLPushFront(&s, 5);
	print(&s);

	//SLPopBack(&s);
	//SLPopFront(&s);
	//print(&s);

	SLDatatype find =  SeqFind(&s, 3);
	//if (find != -1)
	//{
	//	printf("1\n");
	//}
	//else
	//{
	//	printf("0\n");
	//}

	//SLInsert(&s, find, 9);
	//print(&s);

	SLErase(&s, find);
	print(&s);

	SLDestroy(&s);

}



int main()
{
	SeqListTest();
	return 0;
}

